Clean up and document submit script.