Add license.
Refactor stub classes.