Remove unused returns & return variables

There was no need for many of these return statements, and many of the
return variable meanings were quite obvious.

In particular, the LogSumExp function wasn’t actually returning the
same variable.  The rest of the changes are mostly cosmetic.