finished the java version, needs to be tested, it would only work on linux as is.