Added data output interface and commented in doxygen.