Adding more documentation and changing some of the format

I added a bit more documentation explaining some of the patterns, and I've changed the format to fir 80 columns.