Optimization

Callback function added.
Readme improved