Updates dependencies
Adjust code style
Adds tests for issue #10