* Fixed initialization of example context manager.
* Fixed various typos and minor mistakes.
* Added more tests in examples.
* Improved naming in application template: result is now exitCode