Some refactoring and documentation for tests
Added tests
Added simple readme