add rsf
fix
fix
fix
mv rsf class to func
Merge pull request #16 from rwifeng/rsf

Rsf