they were copies of messages sent between nicholas and alexandra when they were apart , dated over a period from early 1916 to the end of 1917 , many of them written by nicholas from his military headquarters near the battlefront of the war against germany .