added comments and new structure

See details at https://github.com/jsdelivr/jsdelivr/pull/1840