fixed parameter checking in ruby code

improved error checking in ruby code
added support for removing queue configuration options
added more comments