added code for myfiles functionality and updated api