CMSPLT-25
Added in the the ability for the system to update the last accessed time for each attachment and cleaned up some of the code.