tests curried version
refactored tests
linting file
added readme