Made some small changes

Changes include:
(1) fixed a syntaxical mistake; dot(x,x,x) should be dot(dot(x,x),x)
(2) corrected omega to omega times small time step where an angle was
needed
(3) now plots the height of the tip of a physical pendulum, and the
mathematically calculated period for comparison