Tect stress calcs

merging tect stress calcs with master