Added doctests for multiple tensor contractions