Latest changes before release of version 0.2.
WIP. Started writing tests.