Readme overhaul, as well as some minor commenting and error checking

README is now useful, added some error checking on addOnxxxxFunction()