Added plot properties
changed plotting and table over to templates
modified xyplot to use templates
modified example to use new template based libraries