abstracted mode and scale patterns. improved comments.