added helper function 'get subfiles', ls no longer prints error messages, began work on open, getattr errors fixed