moved doc to header and converted it to doxygen