Fixed bugs in basic inheritence, added testing and ability for inheritence.