refactor functions in separate file
Beautify help message