added beer example, defined convenience function, and added iterative alignment