Formated variable names properly
removed typos