Fixed some error statements.

Apparently when I run this program, it errors out on atIndex for queue (on java) when it is correct on ruby queue.

Will investigate further.

SFH