Fixed bug for dihedrals in Simulation.cpp. Work on angle and dihedral examples.