ARM-4 Heredoc Update to Version 2 - ready for submission

This (I think) concludes the work on the Heredoc ARM-4. There is now also a fully functional reference implementation. This brings the ARM up to date with the implementation and it corrects details as well as using the new ARM template format.