first commit

Please put close always in a finally as in
```scala
val word2idSave = new BufferedWriter(new FileWriter(new File(word2idFile)))
try {
  word2idSave.write(jstr)
} finally {
  word2idSave.close()
}
```