Added retry if APNS fails & docstrings