migrated code to print rates to a function
pull newest libbtcapi, update function calls accordingly