Fixed commit function: form of commit object, parsing of commit blobs, etc