added "schedule" mode, found errmsg bug

With the "schedule" mode an error is generated
because it is not supported by the library.
But this error was not being displayed because
the wrong $spkpi object was being used.  The error
was for the $new_spkpi object but the error message
was retrieved from $spkpi.