Just ran across your post - just in case it's not too late to be helpful:
I recently wrote a post on bitwise compression at
http://www.solverworld.com/bitwise-compression-what-is-it/ . While the post itself does not give the details of Arithmetic Coding, the related gitlab code repo has a simple implementation of arithmetic coding in Python that you could choose to start with instead of C or Fortran versions. I based my implementation on the Mark Nelson post and some others. I have not fully tested it, but it works on a few test files, and might be easier to follow than a C code version.
Good Luck,
Dan