fixing typos & arranging functions alphabetically