Some modifications to AlphaPhi and to writupe