java codes and a sample script plus a config added