added first example
changed always params
changed calling of done, fail and always in resolve and reject methods
changed arguments of resolve and reject methods