Add lint (coffeelint, tidy) script
Remove trailing white space
Refactor Tile constructor; update comments