add documentation for rectangle.go