add toString to Bone, refactor sample