Feature/settings

First implementation of #578.