Remove unnecessary outputs and comments