Improving make file and correcting simple pendulum functions