Added doxygen generated api documentation.
Fixed some minor inclusion errors and got all unit tests running.