Some corrections with const. New functions of git were added.