Fixing regular expression defaults and adding some more documentation.