Display return code of last execution in header.

GitHub issues: this closes #1.