Fixed a few mistakes and built on Pi.