Some basic work on the code window