fixed typos and ringBuffer typedef