refactored several methods, added comments, and timer for get and put