[MAJOR] Global refactoring. Added class to parse command-line arguments