Source code for my Segway-like-device