Taking  out the unused figures and variables and other stuff