Update 1: Front and Bottom Layers are shifted and rotated accordingly. So they are always facing PCB side up.
Update 2: output gcode is now into appropriate filenames "front.gcode" and "bottom.gcode".
Update 3: Program cleans up after exit, unless you tell it to.
Update 4: Included "makefile". Now all you need is to type in
in the directory.