give title to figures
added debug information