Implemented stor command and fixed bugs