listOf can return empty list
print VGens, don't print true() goals
reverse rule list to print in correct order
hSeek to beginning after updating the file, print contents after editing