Fixed typos and cleaned up errors