Little revision

Little revision of function createCoin