cleaned up LayoutTable and added tests
Merge pull request #49 from timbokopter/feature/cleanup_LayoutTable

cleaned up LayoutTable and added tests