Added delete and rename visited file functions
Changed maximize feature to be more robust.