add comments to amf0
refine amf0, move declarations from cpp to hpp, use namespace _srs_internal