Updated build scripts.

Fixes #1
Added tests.

Note: I couldn't get the floaterStop event to work in the tests so they're skipped for now.

Fixes #2
fixed example
Release 0.4.0