Added MongoDB support & other fixes
added LICENSE