Index: sansview/doc/change_scale_help.html
===================================================================
--- sansview/doc/change_scale_help.html	(revision d292959e408bd8694d3d581e156552aec26caebf)
+++ sansview/doc/change_scale_help.html	(revision b92884a93d3d6730a5b7fb5ff74dc0985709cc36)
@@ -0,0 +1,16 @@
+<html>
+<body>
+<h4>Change scale</h4>
+<p>
+	If the loaded data is a 1-D data.Changing scale or Data Representation will work as
+	followed:<b>right click</b> on the plot window.
+	A context menu pops-up  and select <b>Change Scale</b>. A dialog window titled<b>
+	select the scale of the graph</b> will pop-up then change the <b>x</b>, the <b>y</b>
+	and the <b>view </b> values as wish.
+	If the loaded data  is an image.<b>Right click</b> on the image to pop-up the context
+	menu. Select <Toggle linear/Log scale> to switch from linear to log scale. The scale 
+	selected is printed on the statusbar.
+	
+</p>
+</body>
+</html>
Index: sansview/doc/load_data_help.html
===================================================================
--- sansview/doc/load_data_help.html	(revision d292959e408bd8694d3d581e156552aec26caebf)
+++ sansview/doc/load_data_help.html	(revision b92884a93d3d6730a5b7fb5ff74dc0985709cc36)
@@ -3,8 +3,8 @@
 
 <p>
-<h6>Loading File</h6>
-Overview of elementary concepts in statistics.
-Variables. Correlation. Measurement scales. Statistical significance. 
-Distributions. Normality assumption.
+<h4>Loading File</h4>
+From Menu go to <b>file</b> -><b>open</b>. Select a file from the dialog window and click on Open.
+Data contained in the file will be displayed. To cancel the loading click on <b>cancel</b>.
+In case a file can not be loaded, an error message will be displayed on the statusbar.
 </p>
 
Index: sansview/doc/model_use_help.html
===================================================================
--- sansview/doc/model_use_help.html	(revision d292959e408bd8694d3d581e156552aec26caebf)
+++ sansview/doc/model_use_help.html	(revision b92884a93d3d6730a5b7fb5ff74dc0985709cc36)
@@ -2,8 +2,34 @@
 <body>
 
-<a href ="load_data_help.html" target ="showframe">Frame a</a><br>
-<a href ="glossaryhelp.html" target ="showframe">Frame b</a><br>
+<h4>Visualize Model</h4>
+<ul>
+<li><a href="#Model type">Model type</a></li>
+<li><a href="#Visualize">Change Model's parameters</a></li>
+<li><a href="#Plugin"> Write your own model plugin</a></li>
+</ul>
 
+<h5><a name="Model types">Model type</a></h5>
+<p> Models are grouped into three classes:
+	<ul>
+	<li><b> Shapes</b>: Regular  geometric shapes</li>
+	<li><b> Shape- Independent</b></li>
+	<li><b> Added Shapes</b> : model written by the user</li>
+	</ul>
+</p>
 
+<h5><a name="Visualize">Change Model's parameters</a></h5>
+<p>
+	To visualize model in a different window, from menu click on <b>Model</b>.Select
+	a type of model and then the name of your model.A new window will appear with the plot 
+	of your model with default values. Change model's parameters on <b> model view</b> tab
+	and view the plotted model with its new parameters. 
+</p>
+
+<h5><a name="Plugin"> Write your own model plugin</a></h5>
+<p>
+	Write your own model plugin and save it into <b>plugins</b> directory. You plugin
+	model will be added into "<>added Models</>" fiel on model menu. then you can use it 
+	as a regular default model.
+</p>
 </body>
 </html>
Index: sansview/doc/reset_Graph_help.html
===================================================================
--- sansview/doc/reset_Graph_help.html	(revision d292959e408bd8694d3d581e156552aec26caebf)
+++ sansview/doc/reset_Graph_help.html	(revision b92884a93d3d6730a5b7fb5ff74dc0985709cc36)
@@ -0,0 +1,58 @@
+<html>
+<body>
+
+<h4>Graph help</h4>
+<ul>
+<li><a href="#add">Add Errors</a></li>
+<li><a href="#drag">Drag plot</a></li>
+<li><a href="#reset">Reset Graph</a></li>
+<li><a href="#save">Save Data</a></li>
+<li><a href="#select">Select Data</a></li>
+<li><a href="#zoom ">Zoom in/out</a></li>
+<li><a href="#remove ">Remove Data</a></li>
+</ul>
+
+<h5><a name="add">Add Error</a></h5>
+<p> 
+	Right click on a theory plot.On context menu select <b> Add Error</b>.
+	Errors will be added to the theory.
+</p>
+
+<h5><a name="zoom">Zoom in/out</a></h5>
+<p> 
+	Click on the plotting window, roll the wheel up to zoom out and roll it down
+	to zoom in.
+</p>
+
+<h5><a name="reset">Reset Graph</a></h5>
+<p>
+	To reset the graph's size, right click on the plot and the context menu pops-up.
+	Select <b>Reset Graph</b> and the plot will take its initial dimensions
+</p>
+
+<h5><a name="select"> Select Data</a></h5>
+<p>
+	Right click on the data plotted. It will be highlighted in yellow to interact with
+	the data via context menu.
+</p>
+
+<h5><a name="save"> Save Data</a></h5>
+<p>
+	Right click on plot. Context menu will pop-up select save image [file name].A dialog
+	window opens and write a the name of the file to save and click on <b>Save</b>
+</p>
+
+<h5><a name="drag"> Drag plot</a></h5>
+<p>
+	<b>Left Click</b> on inside the graph and hold the left button on of the mouse and 
+	move the mouse to the direction wanted.
+</p>
+
+<h5><a name="remove">Remove Data</a></h5>
+<p>
+	Highlight the plot and the context menu appears.Select <b>remove [fine name]</b>.
+	The plot selected will disappear.
+</p>
+
+</body>
+</html>
Index: sansview/doc/simultaneous_fit_help.html
===================================================================
--- sansview/doc/simultaneous_fit_help.html	(revision d292959e408bd8694d3d581e156552aec26caebf)
+++ sansview/doc/simultaneous_fit_help.html	(revision b92884a93d3d6730a5b7fb5ff74dc0985709cc36)
@@ -0,0 +1,36 @@
+<html>
+<body>
+
+<h4>Simultaneous Fit</h4>
+<p>
+	Can only happen with more than 2 data select with their associated model.
+	Can only operate with the park engine selected <b>Fitting</b> on the menu.
+	check <b> park</b>.
+</p>
+<ul>
+<li><a href="#noconstraint">Simultaneous Fit without constraint</a></li>
+<li><a href="#constraint">Simultaneous Fit with constraint</a></li>
+</ul>
+
+<h5><a name="noconstraint">Simultaneous Fit without constraint</a></h5>
+<p> 
+	Highlight the data to fit. Select from the context menu <b>Select Data for fitting</b>.
+	A new tab with the name of the data selected will appears. Select a model used for the fit
+	from the combo box. Model's parameters will be display.Set initial parameters if need.
+	Check at least one parameter to fit.Go to <b>Simultaneous Fit</b> and check at least 2
+	models name to fit.Click on <b> constraint fit </b> button. results will be displayed on 
+	tabs corresponding to each model select.
+	
+</p>
+
+<h5><a name="constraint">Simultaneous Fit with constraint</a></h5>
+<p>
+	Perform <a href="#noconstraint">Simultaneous Fit without constraint</a> step.
+	Enter constraint in the text control next to  <b>constraint fit</b> button.
+	Constraint should be of type model1 parameter name = f(model2 parameter name).
+	Many constraints can be entered for a single fit.Each of them should be separated 
+	by a newline charater or ";"
+</p>
+
+</body>
+</html>
Index: sansview/doc/single_fit_help.html
===================================================================
--- sansview/doc/single_fit_help.html	(revision d292959e408bd8694d3d581e156552aec26caebf)
+++ sansview/doc/single_fit_help.html	(revision b92884a93d3d6730a5b7fb5ff74dc0985709cc36)
@@ -0,0 +1,36 @@
+<html>
+<body>
+
+<h4>Single Fit</h4>
+<ul>
+<li><a href="#fitpage">Single Fit</a></li>
+<li><a href="#linearfit">Linear Fit</a></li>
+</ul>
+
+<h5><a name="fitpage">Single Fit</a></h5>
+<p> 
+	Highlight the data to fit. Select from the context menu <b>Select Data for fitting</b>.
+	A new tab with the name of the data selected will appears. Select a model used for the fit
+	from the combo box. Model's parameters will be display.Set initial parameters if need.
+	Check at least one parameter to fit.Click on <b> Fit</b> button.
+	New parameters values will be displayed as well as error and new chi square associated
+	with the fit operation.
+	The model will be replotted with its new values.
+	Errors will be display on the statusbar.
+	Single fit can also be perform on the "<b>simultaneous fit </b>" tab is parameters are previously 
+	selected on the page corresponding to a model name check. if one model is check, click 
+	on <b> constraint fit </b> button to perform a single fit. results will be displayed on 
+	the appropriate tab.
+	
+</p>
+
+<h5><a name="linearfit">Linear Fit</a></h5>
+<p>
+	Linear fit is performed with a line model. Highlight data to fit.From the context menu
+	select <b> Linear Fit</b>.A dialog window appears.Change model initial parameters, data limits
+	and hit <b> fit</b> button. New parameters values are displayed and the line with the new 
+	parameters is added to the plot.
+</p>
+
+</body>
+</html>
Index: sansview/perspectives/fitting/glossaryhelp.html
===================================================================
--- sansview/perspectives/fitting/glossaryhelp.html	(revision d292959e408bd8694d3d581e156552aec26caebf)
+++ 	(revision )
@@ -1,17 +1,0 @@
-<html>
-
-<body bgcolor="#ffffff">
-<h4>Table of Contents</h4>
-
-<ul>
-<li><a href="load_data_help.html">Load a File</a></li>
-<li><a href="single_fit_help.html">Single fit</a></li>
-<li><a href="simultaneous_fit_help.html">Simultaneous fit</a></li>
-<li><a href="change_scale_help.html">Change scale</a></li>
-<li><a href="reset_Graph_help.html">Reset graph</a></li>
-<li><a href="save_data_help.html">Save data</a></li>
-<li><a href="model_use_help.html">visualize model</a></li>
-</ul>
-
-</body>
-</html>
Index: sansview/perspectives/fitting/help.html
===================================================================
--- sansview/perspectives/fitting/help.html	(revision d292959e408bd8694d3d581e156552aec26caebf)
+++ 	(revision )
@@ -1,12 +1,0 @@
-<html>
-<body>
-
-<a href="glossaryhelp.html" target="">Last Page</a> 
-<p>
-If you set the target attribute of a link to "_blank",
-the link will open in a new window.
-</p>
-
-</body>
-</html>
-
Index: sansview/perspectives/fitting/helpDialog.py
===================================================================
--- sansview/perspectives/fitting/helpDialog.py	(revision d292959e408bd8694d3d581e156552aec26caebf)
+++ sansview/perspectives/fitting/helpDialog.py	(revision b92884a93d3d6730a5b7fb5ff74dc0985709cc36)
@@ -3,24 +3,78 @@
 import wx.html as html
 import os
+def help():
+    """
+        Provide general online help text
+        Future work: extend this function to allow topic selection
+    """
+    info_txt  = "The inversion approach is based on Moore, J. Appl. Cryst. (1980) 13, 168-175.\n\n"
+    info_txt += "P(r) is set to be equal to an expansion of base functions of the type "
+    info_txt += "phi_n(r) = 2*r*sin(pi*n*r/D_max). The coefficient of each base functions "
+    info_txt += "in the expansion is found by performing a least square fit with the "
+    info_txt += "following fit function:\n\n"
+    info_txt += "chi**2 = sum_i[ I_meas(q_i) - I_th(q_i) ]**2/error**2 + Reg_term\n\n"
+    info_txt += "where I_meas(q) is the measured scattering intensity and I_th(q) is "
+    info_txt += "the prediction from the Fourier transform of the P(r) expansion. "
+    info_txt += "The Reg_term term is a regularization term set to the second derivative "
+    info_txt += "d**2P(r)/dr**2 integrated over r. It is used to produce a smooth P(r) output.\n\n"
+    info_txt += "The following are user inputs:\n\n"
+    info_txt += "   - Number of terms: the number of base functions in the P(r) expansion.\n\n"
+    info_txt += "   - Regularization constant: a multiplicative constant to set the size of "
+    info_txt += "the regularization term.\n\n"
+    info_txt += "   - Maximum distance: the maximum distance between any two points in the system.\n"
+     
+    return info_txt
+    
+class HelpDialog(wx.Dialog):
+    def __init__(self, parent, id):
+      
+        wx.Dialog.__init__(self, parent, id, size=(400, 420))
+        self.SetTitle("P(r) help") 
+        
+
+        vbox = wx.BoxSizer(wx.VERTICAL)
+
+        explanation = help()
+           
+        label_explain = wx.StaticText(self, -1, explanation, size=(350,320))
+            
+        vbox.Add(label_explain, 0, wx.ALL|wx.EXPAND, 15)
+
+
+        static_line = wx.StaticLine(self, -1)
+        vbox.Add(static_line, 0, wx.EXPAND, 0)
+        
+        button_OK = wx.Button(self, wx.ID_OK, "OK")
+        #button_Cancel = wx.Button(self, wx.ID_CANCEL, "Cancel")
+        
+        sizer_button = wx.BoxSizer(wx.HORIZONTAL)
+        sizer_button.Add((20, 20), 1, wx.EXPAND|wx.ADJUST_MINSIZE, 0)
+        sizer_button.Add(button_OK, 0, wx.LEFT|wx.RIGHT|wx.ADJUST_MINSIZE, 10)
+        #sizer_button.Add(button_Cancel, 0, wx.LEFT|wx.RIGHT|wx.ADJUST_MINSIZE, 10)        
+        vbox.Add(sizer_button, 0, wx.EXPAND|wx.BOTTOM|wx.TOP, 10)
+
+        self.SetSizer(vbox)
+        self.SetAutoLayout(True)
+        
+        self.Layout()
+        self.Centre()
 
 class HelpWindow(wx.Dialog):
     def __init__(self, parent, id, title):
-        wx.Dialog.__init__(self, parent, id, title, size=(450, 450))
+        wx.Dialog.__init__(self, parent, id, title, size=(600, 450))
         
         vbox1  = wx.BoxSizer(wx.HORIZONTAL)
         
-        #lpanel = wx.Panel(self, -1, style=wx.BORDER_SUNKEN)
+        lpanel = wx.Panel(self, -1, style=wx.BORDER_SUNKEN)
         rpanel = wx.Panel(self, -1)
-        #vbox1.Add(lpanel, -1, wx.EXPAND|wx.ADJUST_MINSIZE, 0)
+        vbox1.Add(lpanel, -1, wx.EXPAND|wx.ADJUST_MINSIZE, 0)
         vbox1.Add(rpanel, -1, wx.EXPAND|wx.ADJUST_MINSIZE, 0)
         
         vbox = wx.BoxSizer(wx.VERTICAL)
         header = wx.Panel(rpanel, -1, size=(-1, 20))
-        header = wx.Panel(rpanel, -1)
         header.SetBackgroundColour('#6666FF')
         header.SetForegroundColour('WHITE')
         hbox = wx.BoxSizer(wx.HORIZONTAL)
-        st = wx.StaticText(header, -1, 'Help', (5, 5))
-        
+        st = wx.StaticText(header, -1, '', (5, 5))
         font = st.GetFont()
         font.SetPointSize(10)
@@ -30,30 +84,52 @@
         vbox.Add(header, 0, wx.EXPAND)
        
-
-        help = html.HtmlWindow(rpanel, -1, style=wx.NO_BORDER)
-        try:
-           cwd = os.path.split(__file__)[0]
-        except:
-            cwd = os.getcwd()
+        vboxl= wx.BoxSizer(wx.VERTICAL)
+        headerl = wx.Panel(lpanel, -1, size=(-1, 20))
        
-        
-        
-        dir = os.path.dirname(os.path.dirname(cwd))
-        filename="doc\load_data_help.html"
-        print os.path.join(dir,filename)
-        fname=os.path.join(dir,filename)
-        help.LoadPage( fname )
-        
-         
-        #print help.ToText()
+        headerl.SetBackgroundColour('#6666FF')
+        headerl.SetForegroundColour('WHITE')
+        hboxl = wx.BoxSizer(wx.HORIZONTAL)
+        lst = wx.StaticText(headerl, -1, 'Contents', (5, 5))
+        fontl = lst.GetFont()
+        fontl.SetPointSize(10)
+        lst.SetFont(fontl)
+        hboxl.Add(lst, 1, wx.TOP | wx.BOTTOM | wx.LEFT, 5)
+        headerl.SetSizer(hboxl)
+        vboxl.Add(headerl, 0, wx.EXPAND)
+        self.lhelp = html.HtmlWindow(lpanel, -1, style=wx.NO_BORDER)
+        self.rhelp = html.HtmlWindow(rpanel, -1, style=wx.NO_BORDER)
        
-        vbox.Add(help, 1, wx.EXPAND)
-        
+        page="""<html>
+            <body>
+            <ul>
+            <li><a href ="doc/change_scale_help.html" target ="showframe">Change scale</a><br></li>
+            <li><a href ="doc/reset_Graph_help.html" target ="showframe">Graph Help</a><br></li>
+            <li><a href ="doc/load_data_help.html" target ="showframe">Load a File</a><br></li>
+            <li><a href ="doc/simultaneous_fit_help.html" target ="showframe">Simultaneous Fit</a><br></li>
+            <li><a href ="doc/single_fit_help.html" target ="showframe">Single Fit</a><br></li>
+            <li><a href ="doc/model_use_help.html" target ="showframe">Visualize Model</a><br></li>
+            </ul>
+            </body>
+            </html>"""
+       
+        self.lhelp.SetPage(page)
+        self.lhelp.Bind(wx.html.EVT_HTML_LINK_CLICKED,self.OnLinkClicked )
+        vbox.Add(self.rhelp, 1, wx.EXPAND)
+        vboxl.Add(self.lhelp, 1, wx.EXPAND)
         rpanel.SetSizer(vbox)
-        #lpanel.SetFocus()
+        lpanel.SetSizer(vboxl)
+        lpanel.SetFocus()
         
         self.SetSizer(vbox1)
+        
         self.Centre()
         self.Show(True)
+    def OnLinkClicked(self, event):
+        """
+            Function to diplay html page related to the hyperlinktext selected
+        """
+        link= event.GetLinkInfo().GetHref()
+        self.rhelp.LoadPage(link)
+
 
 class MyApp(wx.App):
Index: sansview/sansview_glossary.html
===================================================================
--- sansview/sansview_glossary.html	(revision b92884a93d3d6730a5b7fb5ff74dc0985709cc36)
+++ sansview/sansview_glossary.html	(revision b92884a93d3d6730a5b7fb5ff74dc0985709cc36)
@@ -0,0 +1,13 @@
+<html>
+<body>
+<ul>
+<li><a href ="load_data_help.html" target ="showframe">Load a File</a><br></li>
+<li><a href ="single_fit_help.html" target ="showframe">Single Fit</a><br></li>
+<li><a href ="simultaneous_fit_help.html" target ="showframe">Simultaneous Fit</a><br></li>
+<li><a href ="change_scale_help.html" target ="showframe">Change scale</a><br></li>
+<li><a href ="reset_Graph_help.html" target ="showframe">Reset Graph</a><br></li>
+<li><a href ="save_data_help.html" target ="showframe">Save Data</a><br></li>
+<li><a href ="model_use_help.html" target ="showframe">Visualize Model</a><br></li>
+</ul>
+</body>
+</html>
