Second Question: An endospore is a dormant, tough, and non-reproductive structure produced by certain bacteria from the Firmicute phylum. Endospore formation is usually triggered by lack of nutrients, and usually occurs in Gram-positive bacteria. In endospore formation, the bacterium divides within its cell wall.
Hope it helped!