Added help screen and refactored code