added custom 'to_coo' wrapper
simplified coo converter