nb2lines function

Use vector files for import and export of weights