Added tril function + typo fix

Added tril function