Added rpi example and minor cleanups