implemented config as typedef
Merge pull request #33 from yanhick/config-typedef

implemented config as typedef