Updated latex documentation and header