convert to use __constructor (requires PHP 5)
convert to use an array for config
update readme and usage comment