Controlling And Detecting Light For On-Chip Optical Interconnects