Made CMake file more flexible.
Remade argument parser and configuration classes.