Clean up and prepare for publishing