Minor polishing
Adds gui for accelerometer controls, and fixes a few irregularities.