Updated documentation and improved error handling when running external commands.