adding code for check pointing meta data
First draft of recover from checkpoint code
Basic testing of loading from checkpoint done, garbage character issue fixed