Add debug/coordinates mode
Fix function to determine hostname
Remove unused template
Remove unused code