A general model on the origin of biological codes. (July 2019)