java multi-class fix and Readme update