first stab at program editor
programming works
removed debug printing