Simple and explained amf encoder and decoder.