Improved gcode command parsing

Rendering now works with gcode which doesn’t use spaces between
parameters.