added file listing function.