Migrated to php 5.3
Added namespace and removed php 5.2 old features