Updated to plotly version 1

Updated plotly syntax, added table of contents.