moved normalizing function to the fun library, and updated the figure
code.  Added Figure 3 script.