Cleanup
Fix startup crash
Remove unused includes
Pass std::functions as const reference
Remove unnecessary npc reloading at startup
Code cleanup