Added missing documentation comments
Moved command line parsing to separate class