Implemented the flush method by using the built in java Serilizable and File and Object Stream Classes. Need to adapt test as repeating running the tests and cause tests to fail due to extra Contact/Meetings id being generated.
Cleaned up code a bit. Added shutdown hook.