fix syntax
fix more php warnings
indeting <?php is no good idea, as the whitespace before is interpreted as output - Rmk will get this by mail from cron
bugfix: stage names