cleaning up formatting as well as upgrading gulp.

Additionally, added more tests around the new pattern functionality and changed the logic a bit to all be inline.

Incremented package.json version