First release candidate for 1.0. Convert test file into proper unit tests.