Wrote functions to work with the C code. Works for the most part, but text is malformed and display bleeds.