converted package lib indentation to spaces to be consistent with other libs
using oc specific parameter checking function in package lib and adjusted error messages to be more consistent with vanilla Lua