Move PrintList function to public header.
Remove unused definitions of functions.