fixed bugs in file generation to make format compatible with https://github.com/dmontag/neo4j-import