change docs file suffix to rst, add some docs for views