Fixed StackOverflow error. Successfully Split generation/demo functionality.

*Accidentally had a neverending debug pr function.
*Deleted more legacy code from GraphDemo.