fixed proj 2 leaks and implemented ellipse