update static lib
re-arrange viewer functions
remove comments