version 0.2, optimize, add haartophp tool in php (all-php solution)