General Cleanup and logging fixes

- Make consistent header copyright
- logtools.py used consistently
- Remove unused variables and imports