Cleanup

Renamed variables to make more sense. Created debug log toggle.