Some improvements and changes

mainly added some javadoc and tests for the DAO classes
@abstractj this test fails, but to me it should not