added config file and fix code for php 5.3
Merge pull request #1 from amitdar/amit

added config file and fix code for php 5.3