add edit flag
Merge pull request #12 from ulberge/editflag

add edit flag