added promise-based API, multi-threading; when() library
work on documentation
error handling in promise, edit docs.
changed version to 0.41.00.alpha