moved references into _references.ts, also moved c.ts and files.ts into "other"