Implemented tilting, added variables in TDI class, commented code