Added config file.
Updated readme.
Fixed a bug.