version 1.2.0; fixed some output and added some multiplatform checking

changed format of code to standard K&R to improve readability
renamed some functions to improve readability
changed name of temporary download file to something more random to
prevent rewrites on previous files