First working code release, with some tests