removes source(), and renames getDevice() to device()
fixes logic to check for length of arguments instead of input type in get() and device()
changes checking of directory existence to use fs.exists instead of try catch statement