Improvement in App class.

It's possible to pass the instance by command line if you want.