added alerts fxn
added alerts examples