Add more documentation.
Small action hooks tweaks.