Fixed tile re-sizing bug when clicked in work area, added debug to diagnose log file problems