added reference check functions and changed the layout to include a separate section for references