using figure, link updates, code indentation fixes