Insert page app for static pages, fix some docstrings and small code layout