initial code dump with sample usage code in test/