Added flight code file

All flight code seems to work pretty well