implemented update and delete of SPSegment
test update for last commit
fixed some style issues