Add Main class for running programm as script.