More fixes for app docs
Refactoring of rst function extracor.