commit function added. Some dependency issues fixed.
functions docs