Moved initialization from main to init funciton
Little bit of variable renaming to separate globals from locals
Now with readable default configuration writer. Still not used
Corrected and separated config extraction
Methodology continues
Merged from filter branch
Another reformat I forgot to do at right time
Merge branch 'master' into init. Bugfixes, other stuff
Corrected program flow. Now it could not end without starting
minor edits and plans for the future
another merge from mainline into feature branch
Now making log if it does not exist
Semi-fixed commit, broke logging and downloads and everything