changing formatting
* generated documentation
* added constructor to record to auto populate has_many relations
* added static where to options for mappings