cleaning up some typos and comment formatting. renamed theme/type to theme/text so there arent two files with the same name.