Removes debugging alerts, fixes indentations.