params object, dom event triggering

changed parameters to single param object, added support for native dom event triggering