Rewrite and separate AFM parsing code (no more [afmfiles]).

5 files changed