Fixed uninitialised member variables, and added missing derived methods.