Add ListFile support

1. Fixing bugs
2. Add ListFile command support