added config and example files. Also added default parameters