Small DMA fixes and added Circular Buffer code