Fixed response format, implemented identify files in working directory
on startup, fixed lseek failing on files in read mode.