added css styles for figures, tables, layout and presentation, finished recursive function