added autobuild_pdb_and_intervening_beads and optimize_floppy_bodies and fixed many bugs here and there