Fixes to where data for each joint is stored
Added fabfile for controling refinement optimization