added to readme and restructured inheritance