plain JAVA compatibility

changed project to be compatible to plain JAVA, not only Android. Now we
can generate a .jar file and use it everywhere