Refactored some doxygen comments on the DAO package and protected some functions from null values.