Cleans up the apache file and adds new functionality to the update script.