fixed minor bug causing out of bounds array access
added return for operator= on throw class
minor bug fixes
added PatternSettings class
removed '~' files
added .gitignore
fixed discrepancies due to bad giting
merged from master