Imported @EnricoMingo commit "Added prints and conversion for twists"