support for directory listing

this adds support for listing directory contents. 

converts char** to String[]