Initial commit of changed java scripts and self-made R scripts