Separate command line arguments processor from an executor and cover the first by unit tests;
Minor fixes