Quick fix of 'if' loop.
Implented first version of the YAML config system.
Typo fixes.