Added math visualisation from BB code in xml to richtext in app. Also restructured.