Added session token checking to update function
Uncommented update function and categorized
Changed url detection for update function