In general, it was a mess, so I'm re-organizing it in hierarchical scheme of entities which are initialized by a set of inputs.
Well, it might be weird, but seems to work well.
It could be improved and there's might have a bit of overhead in this process (many copies involved), but it's acceptable I think, I'm way more worried about making it clean and organized, otherwise I'll get overwhelmed by caos and not actually finish anything.
