Misc fixes

some small fixes and changes that I've found helpful while using this module

changing the base init to be parameterized instead of using globals is not backwards-compatible, but the rest of them should be.