I just wonder why there was no preceding
\begin{document}
when parsing the \AtBeginDocument
part...Anyway. The class is working well now.

Falko
\begin{document}
when parsing the \AtBeginDocument
part...NEW: TikZ book now 40% off at Amazon.com for a short time.