Swapped parameters of PUT function; added comments.