Add LDoc configuration and slightly extend doxify.sh.
Add documentation in various places.