Fixed generate_requests.sh to write generated request file the occurrences file name passed as argument (it was always using teste.txt).
Replaced spaces from file names with "_".