Add config file support and extract configurable variables #1