Implemented refresh(), reinitialize() and correct dataInit handling