Separate listFiles from event method
Add file2Doc convertion method