Added basic ECDSA functionality and various minor changes.