Just a couple syntax corrections and also added a bit in trig