fixed some typos and added some formatting