Fixed typos and naming inconsistencies.

Fixed issue #283.
Consistently name MyClass and MyProtocol to match interface definitions.