lib/Nexus.js
async function genEntity(par, fun = _ => log.e(_)) {
				if (!('Entity' in par)) {
					fun('No Entity defined in Par');
					return;
				}
				par.Pid = par.Pid || genPid();
				
				let impkey = (par.Module + '/' + par.Entity);
				let mod = ModCache[par.Module];

				if (!(par.Entity in mod.files)) {
					log.e('<' + par.Entity + '> not in module <' + par.Module + '>');
					fun('Null entity');
					return;
				}

				if (!(impkey in ImpCache)) {
					let entString = await new Promise(async (res, _rej) => {
						mod.file(par.Entity).async('string').then((string) => res(string));
					});
					ImpCache[impkey] = indirectEvalImp(impkey, entString, log, 
						createRequireFromModuleType(par.Module));
				}

				EntCache[par.Pid] = new Volatile(new Entity(Nxs, ImpCache[impkey], par, log));
				fun(null, par.Pid);
			}
async function genEntity(par, fun = _ => log.e(_)) {
				if (!('Entity' in par)) {
					fun('No Entity defined in Par');
					return;
				}
				par.Pid = par.Pid || genPid();
				
				let impkey = (par.Module + '/' + par.Entity);
				let mod = ModCache[par.Module];

				if (!(par.Entity in mod.files)) {
					log.e('<' + par.Entity + '> not in module <' + par.Module + '>');
					fun('Null entity');
					return;
				}

				if (!(impkey in ImpCache)) {
					let entString = await new Promise(async (res, _rej) => {
						mod.file(par.Entity).async('string').then((string) => res(string));
					});
					ImpCache[impkey] = indirectEvalImp(impkey, entString, log, 
						createRequireFromModuleType(par.Module));
				}

				EntCache[par.Pid] = new Volatile(new Entity(Nxs, ImpCache[impkey], par, log));
				fun(null, par.Pid);
			}
Creates an Entity in the module, which is defined by the apx, from the given entity definition
The entity is then stored in EntCache (the location of all "in Memory" entities)
@param {string} apx 			the Pid of the module Apex in which this entity will be generated
@param {object} par 			the Par of the entity that will be created
@param {string} par.Entity 	The entity type that will be generated
@param {string=} par.Pid		the pid to define as the pid of the entity
@return {pid} par.Pid		the pid of the generated entity
@callback fun