add prgLibrary
edit prgviewer begin refactoring