removes old files and updates php