cleanup in documentation
fix small bug in chained_lsqfit