Code and unit tests of version 1.0.