updating readme and changing __DIR__ to dirname(__FILE__) so that it works with older versions of php