doc: minor corrections.

Signed-off-by: bert <bert.timmerman@xs4all.nl>
SHAPE: added dxf_shape_free().

Signed-off-by: bert <bert.timmerman@xs4all.nl>
SHAPE: check for NULL pointers and do basic checks.

Signed-off-by: bert <bert.timmerman@xs4all.nl>