minor cleanup and reformatting to C style
adding example string to get_links