New dataRefresh() function to reset object
Also rationalised to functions to use the new function above.