Codebase tidying up

Mostly header includes and backslashes at ends of strings