Functions,statements and Variables

Function names, code indentation and error detection and fixing!