updated to support the latest bspkrsCore version
removed ModLoader references
fixed compiler warnings
fixed logical error