add init options; also enable two-way events

closes #7