init
work in progress
cosmetic changes
Merge pull request #1 from tsboris/codereview

cosmetic changes
a lot of cahnges:
make rspec work
Add validation
add indexes
ubdate functions
Add table relations