First working version of code, with tests, updated README