Cleaned up comments, changed 'angle' to 'theta' to clarify.