cleaned up c tronlib interface