Channel Estimation and Transmission for Intelligent Reflecting Surface Assisted THz Communications