Added files for IntelliJ IDEA
Added support for using a promise instead of a callback