Bug fixes
Add save_settings command
Add init_app and init_plugins and some improvements
Some improvements and bug fixes