Update error handling.
Add documentation on the external executables.