Function addition

Encapsulated the print statement for the __doc__ string into a function
for later use.