lower case variable name
new variable $enddocument
remove prelude.sty check