split the api.rst
update doc for attributes
use the full path
added doc for result.py
split the tests from result.py