Added code to derive the EoM for a pendulum with n links