improved compute()
fixed manualintegrate bug
Merge pull request #13 from mkotov/master

improved compute()