used set instead of list (result is skipping blank node); added saving
n3 to file