Update conversion script to split algorithms & functions