Added figures.
Removed a bunch of warnings.