Started adding unit tests and ddocs
Generating ddoc output during builds.