Reorganized code, refactored GetItem and GetUser methods to use MakeHTTPRequest function. Added comments.