cleaned up code. added test for getHistory. added (but disabled) smake manifest