Finished and fixed the ERA IK calculation, although it is still a bit flimsy.