Fix a bug in Tiles and remove some redunduncy
Merge pull request #44 from ccgn/master

Fix a bug in Tiles and remove some redunduncy