Added config.xml and config.php to parse the former
Refactored a bit and edited old comments