Added timing.
++comments
Merge pull request #3 from evaleev/master

sync with EV fork: improved efficiency, added timing