Review fixes

Remove unneeded forward declaration of a struct.
Add function declaration to the header.
Remove function declaration from the header.
Add doxygen.