fixed typos and various other minor issues