Update to CSLib BaseMod system, fixed many bugs