added commit functionality, using the hash as revision ID