refactored initialization, and added in bone data.