Inheritance - mostly fixed

on request, so you can have a look at the remaining errors