extraction from the RFC
added makefile and missing 1321 code