renamed
set up debug flags
refactored domain model
fixed bugs in hibernate mapping