added global application state, added model files