Remove excess java, add cfg file