refactoring settings.py

 - adding documentation
 - reordering and grouping