Recover file functionality added, renaming bug fixed