added exception, changed readme.md and added few tests