change Exception to NPE
change var name for better understanding
replaced unused code eith TODO
replace comment
set graph to null, after leaving start-method
added testclass for guistarter