Added ring buffer code and expanded error messages unit.