Added checkMemberExists() and addType().  Made some minor coding corrections to some of the other functions.  Modified test.php to test some of the new functions.