changed .gitignore, other updates

.gitignore now masks anything that globs "*coha*" or "*.png". Updates to
letter_distributions (although some numbers of bins give empty space at
the right or left of the graph) and pattern_search (which now seems to
be working well)