Fixed plugin calling undefined function if Cookspin core is deactivated; other small fixes