Analysis and Synthesis of Linkages and Machines