Added joints to graphic layer, now used by the model.
Replace code in GlWidget by input reader function.