warnings-- switch to non-deprecated ctor
use non-deprecated method of building the notification
use non-deprecated method of converting Date -> GMT formatted string
fix comment formatting
format sample's code
fix "asnInputStream is never closed" warning