File tidy up and permission change