all files use <?php for code tag open fix various bugs & speed problems. eg switch from while (each ...) to foreach, ...