Added docstring for getConfig function. Added readme.