drawPage should be the last thing that runs if it echos
Close session before output; outputs in chunks to avoid apache performance bug
Merge pull request #5 from mapkyca/fixing-drawPage

Fixing draw page