fixed problem on selecting root level element, used regex to ignore directory that is not part of the root being specified
added gitignore