Initial version of emdoc.pl. Basic, but seems to be working.