fixed typos and cleaned up formatting