Create proto-spec.txt

Continue to whittle down the spec until the implementation in code is obvious.