Some improvements and changes

mainly added some javadoc and tests for the DAO classes