Fix addcslashes second param. Remove unused function. Add in basic error notification.