bumped version to v0.1.3
internal refactoring and added function clear.
more tests added