Finalize class shape, and add documentation for class Shape and trait ShapeImpl