saving and loading with text specified swing implemented
removed extra print statement