A Study of Terahertz Time Domain Spectroscopy