Some refactoring, adding a config file
Merge branch 'master' of https://github.com/mdesenfants/imdex