Doxygen Comments and Code Cleanup for SAMR21.