Optimize/Cleanup

No idea what performance increase this will give, there will be one for creation though. There are also optimizations throughout that will give slight speed increases and protect against falsey compares.
The speed/memory tradeoff here is trivial. I'd prefer to keep the cleaner style.

It's not exactly obscure (after all, that repository is the center of all KnightOS-related development), but I should put it here as well. And it's not difficult to mimic an existing style, I do it all the time.