added commitFull method.
fixed missing semicolon.