fixed some mission stuff, add writeBytes method
Merge https://github.com/spmurphy0922/simulator