Rst doc tests

use rst files for doc tests to be shown formatted in github