added Reference.java and updated references