Initial upload of rewritten code

This is the initial upload of the Yarrow code that is being rewritten.