Made library for ring buffer mapped to a file.

Storing head/tail info at the end of the file too.