Updated gcode generation to pack 50 bytes at a time. Also fixed time caluclation script to be more accurate.