Enforcing integer for updates
Fixed newline bug

Windows newlines caused wget to fail to use the right URL
Whitespace fixes