<P> Einhard made numerous references to himself as a "sinner", a description of himself that shows his Augustinian influenced world view . To assuage such feelings of guilt he erected churches at both of his estates in Michelstadt and Mulinheim . In Michelstadt he also saw fit to build a basilica completed in 827 and then sent a servant, Ratleic, to Rome with an end to find relics for the new building . Once in Rome, Ratleic robbed a catacomb of the bones of the Martyrs Marcellinus and Peter and had them translated to Michelstadt . Once there, the relics made it known they were unhappy with their new tomb and thus had to be moved again to Mulinheim . Once established there, they proved to be miracle workers . Although unsure as to why these saints should choose such a "sinner" as their patron, Einhard nonetheless set about ensuring they continued to receive a resting place fitting of their honour . Between 831 and 834 he founded a Benedictine Monastery and, after the death of his wife, served as its Abbot until his own death in 840 . </P> <P> Local lore from Seligenstadt portrays Einhard as the lover of Emma, one of Charlemagne's daughters, and has the couple elope from court . Charlemagne found them at Seligenstadt (then called Obermühlheim) and forgave them . This account is used to explain the name "Seligenstadt" by folk etymology . Einhard and his wife were originally buried in one sarcophagus in the choir of the church in Seligenstadt, but in 1810 the sarcophagus was presented by the Grand Duke of Hesse to the count of Erbach, who claims descent from Einhard as the husband of Imma, the reputed daughter of Charlemagne . The count put it in the famous chapel of his castle at Erbach in the Odenwald . </P> <P> The most famous of Einhard's works is his biography of Charlemagne, the Vita Karoli Magni, "The Life of Charlemagne" (c. 817--836), which provides much direct information about Charlemagne's life and character, written sometime between 817 and 830 . In composing this he relied heavily upon the Royal Frankish Annals . Einhard's literary model was the classical work of the Roman historian Suetonius, the Lives of the Caesars, though it is important to stress that the work is very much Einhard's own, that is to say he adapts the models and sources for his own purposes . His work was written as a praise of Charlemagne, whom he regarded as a foster - father (nutritor) and to whom he was a debtor "in life and death". The work thus contains an understandable degree of bias, Einhard taking care to exculpate Charlemagne in some matters, not mention others, and to gloss over certain issues which would be of embarrassment to Charlemagne, such as the morality of his daughters; by contrast, other issues are curiously not glossed over, like his concubines . </P> <P> Einhard is also responsible for three other extant works: a collection of letters, On the Translations and the Miracles of SS . Marcellinus and Petrus, and On the Adoration of the Cross . The latter dates from ca . 830 and was not rediscovered until 1885, when Ernst Dümmler identified a text in a manuscript in Vienna as the missing Libellus de adoranda cruce, which Einhard had dedicated to his pupil Lupus Servatus . </P>

When did einhard write the life of charlemagne