Add ref documentation and doxygen