Add full documentation to loops class methods
Make max loops a configurable setting