Secondary storage node implemented and bug fixed for primary storage node