remove useless parantheses
make short variable names more legible
remove unused variable
make short variable names more legible
remove useless parantheses, straighten includes
remove dead code
make variable const
add property to mark end of leg
implements #1020
remove an unneeded parameter
some variables renamed to replace camel case
commented assertion that is triggered on trivial instances