Change callbacks into promises

Change that callbacks into promises so you can better handle the errors!