Made tests php 5.3 compliant
Cleanup & documentation