Refactored library files and classes names
Added run-control variable
Some changes to a cmakelists
Initialize vars with zeros