Implement config files and introduce some comments in the code for great glory(tm). This fixes #9.