implement toBoolean
add tests for toBoolean
fix method slightly, add more tests
update readme