added read method, returns array of all files/directories within a given path