Fixed ftell bug, send to owned address checks for public key in wallet.