cleaned up GetTable and added tests
Merge pull request #40 from timbokopter/feature/cleanup_GetTable

cleaned up GetTable and added tests