Excluded generator from compressed version
Fixed multiple PHP 5.2 compatibility issues
Fixed service name in factory