Better configuration handling

* Added a default configuration (use default configuration if user
configuration is incomplete)
* Updated build
* Change configuration save