Implemented the gcode viewer as a module. Bugfix & code cleanup