initial backport of print_library
add print_library.c routines
remove commented out lines
Merge pull request #140 from jhamman/feature/print_library

initial backport of print_library