added basic tests
added documentation