Move guards to cover headers
Doesn't like main, so rename texmain
Comment