Updated java and scala comments