added bool to disable endless downloading
moved program_file to own variable
linebreak
changed name to not conflict with lib