Restructured getTilerDict

Restructured getTilerDict to be much cleaner.