getting closer
refactored, started test suite and fixed README