added some documentation and cleaned up armassist/rehand simulation code a bit