Cleared out old java interfaces
Enforcing key and data types
Init vector.