documented main changes; removed unused 'app=None' keyword argument