Functions updated

* Changed lock system.
+ Added commit parser.