writeRawFile is now compliant with the most recent jarvis updates. Can now compile and debug.