fixed commit error and added comments