fixed typos and improved formatting