Cleanup main file