added code to parse in commandline parameters. Added code to time loading and finalising graph. Some other other minor changes.