Split configuration

Split configuration into sections, as suggested by @cordoval in #240