generalized substellar_point so that it can handle other planets, and added Mars constant; generalized graph function so it can graph any quality