few changes....

add benchmarking to php example
fix write log for file storage
dont read config in main