Moved config manipulation to CustomConfig

Also fixed bugs and moved many things to new classes
Moved command execution to separate classes