Fixes #1 - completed $beforeInherited, $afterInherited and $afterClassDefined