correct testing; a bit more performance
remove dead initialisations
fix space in DOCTYPE