Some format cleanup.
Fix typo in the config loader.

This CL replaced the typo 'CACHe' to 'CACHE', and
print the config to with PrintLine for debugging.
Change to use Dim2(y, x) instead of Dim2(x, y).
Initialize core blocks.
Launch debugger when debug option is given.
Fix div of zero in Task.cpp.