edit prgViewer

remove any unnecessary
add new comments
add some functions