some code cleanup
added GPL license and readme for the pi code