init app, define basic structure.