Fixed some problems with ECDSA, bad output, and several mem leaks.