Added MIT license.
Wrote skeleton for patch function.