code ported

would be good to include URLs of these papers