Ok, I have been building up a generic Module class with nodes. The image is what it looks like. Those circles are the nodes for connections between the modules which are the icons. Click the top icon on the bar, the cursor changes to that icon. Click in the graphic panel, and it is placed there with the nodes drawn on automatically and dynamically. So if there is 1 node on the left side, it puts it in them middle. 2 nodes, it puts it at 1/3 and 2/3 and so on. Nodes can be on any side.
I have it to the point where all I do is make another class that is inherited from the module class, and voila I have a new module to place around and move and such.
Next thing is to get the node linking working (make output of module A input to module B and then 1 output is the functions output, and then nonconnected nodes are the inputs.