added commit operation

This is WIP and meant as a discussion basis.