Update tavernaSender.php

Added some error checking, and new functions