added gitignore and fixed issue #1 with adding a try catch around the path and passing over ones without correct permisssions