Better instructions + fixed bugs with PHP 5.3+