Main script cleanup: add missing semicolons, convert all spaces (groups of 4) to tabs, trim trailing space.