added layout + tests
moved model tests into seperate test file
quick tidy up
prototype of table (mongo)