Separated classes into individual files

Also added better error handling and cmd line functionality to
GraphGenerator