replaced print w/ logging on API calls

Print in an API is not a polite thing to do

Includes some other cleanup