Cleanup + new commands

Done some cleanup and tested some new functions; setting squawk and
clearence flag (last is not working)