Added Tools to Edit mode, added selection of nodes to ProgramState.
Overhaul of code placement.