Fixed tile reader and implemented contents(). Fixed javadocs.