Implemented the Key class.

Classes were also broken out into individual files.