Adding target to gitignore
Replacing callbacks by direct use of promises