- a few small but critical fixes to the lib (constructor was bad)