Added comments to explain the more complex flows
Fix the path to look for Database specific script
Merge pull request #8 from nprovencher/master

Bug fixing and refactoring