[doc] update to readme, [lib] cleaner way of providing configuration