Fixed .gitattributes
Bug fixes for summation function