Added TEC class and some minor fixes to set_integration_time

Sorry for the changes in formatting, my IDE seems to do that automatically