enhance top-of-file comments
add more useful macros to lib.h
typedefify str_list