Corrected typos that result in crash

Use lower case "extend" in base class implementation. Also added the function name in the base call for derived classes.