[doc] update docstring of bounding box
[mod] use namedtuple for path
[mod] use namedtuple for position
[mod] make tests more readable
[mod] use namedtuple for bounding box
[mod] prettier return by returning directly