fix wrong indentation
small fixes and code quality improvements
add bunch of jasmine tests
add test to package scripts, version 0.0.2