added support for celery, fixed bugs, updated documentation