I added comments to the functions and made sure the Demo's still work. The Thing I need to find out next is how I should convert the 2D plot in a graph.