defined some classes, global variables. Added parsing for some command line arguments