handles special case for leaves while creating commitment tree; Also, adds starer code for creating commitment tree