loops and brackets generalized
Merge branch 'master' of https://github.com/slisson/mps-math