updated file names and added update function