Fix error information
Remove all PHP code written in tpl files before parsing.
Re-format and change names for some method in class atomPHP.