moved app params at the beginning for the file
added missing docstrings