added file list functionality

Made changes to FIleThread.java to support file listing functionality