Removed an horribad method from the rectangle geometry and corrected a lot of small things and comments