Completed doxygen comments for all of howm.c

I also made a slight stylistic change to reduce the number of arguments passed to get_atoms.