callback is now sent in constructor like the other params. updated test, example and docs.