various code improvements
Merge branch 'master' of github.com:PenguPilot/PenguPilot