added new tests
fix problems
added new functions
updated readme