Simplified point and bone code by separating into separate classes