Restructured project
Added doctests.
Added unit-tests worthy of the name.
Added build file.