moved YACoin routines into yacoin.c