Some code refactoring, updated help printing

PEP8 code refactoring, added help printing if called without any arguments