Polishing with a file

Moved the preamble into the class file for easier reuse

Failsafe for ifxetex.sty absense

Added some math to make /g/ happy