fixing tile entity and tidying up code for readability
Readability fixes
Readability fixes
Readability fixes, Tile entity fixes, Gui fixes