fixed bug found in flush method, error reloading data from file
final commit, project complete