Commands and Configurations?

So I’m sure I could figure these out if I spent a little bit of time on it, but there’s probably a better way to do it than the way I might. How would you create a command and how would you setup configuration files?

This is an example plugin that shows how to register a command:
https://github.com/sk89q/SpongeExample/tree/master/src/main/java/example

Right now there is no official information how to work with configs. I found this:
https://docs.spongepowered.org/en/latest/users/config/
http://spongepowered.github.io/SpongeAPI/org/spongepowered/api/util/config/ConfigFile.html

The last 2 methods of the pre-init event:
http://spongepowered.github.io/SpongeAPI/org/spongepowered/api/event/state/PreInitializationEvent.html

Looking at the command example right now, it seems a bit outdated.

i noticd too, the docs not been updated recently