Configuration and command line arguments parsing