correst mispelled words
updated functions
fixed tiny error
added function