refactoring mxdb for cleaner user interface
-more clean up  and edits before release
-fixed issue relating to read mgf library
-fixed handling of empty spectra or spectra with few peaks