Added an error to avoid an uninitialized value
Fixed ref in changelog
Fixed ref in manual
A few fixed in tutorial.

Notice that latex cannot be used in captions