Changes constructor to only accept config object for initial state,
removes `data` property.