Implemented main log

Temporary log table now records every 30 seconds for an hour then dumps
min, max, avg to main log