Completed IK implementation. Still needs a little more testing, but it seems very robust.