added method to be able to reuse the console application
added a simple test
amended documentation
Merge pull request #1069 from anho/reuse-console-app

added method to be able to reuse the console application