Fixes syntax errors and adds percent downloaded