Better pattern rule handling

Added minmatchscore argument to pattern rule constructor. Also upated some out-of-date documentation.