Fixed saving edits. Added debug printing for SCMItem object.