documentation for dao added and unit tests implemented