Cleaning up files and adding error pages.