adding references to figures and adding some references to some blocks