Refactoring: Classes were separated by units; Parse command-line options.