Nice work! The decompression should be fine; it probably is just getting the wrong size as input Anywho, I would also recommend making a link to the C libs in your readme
Thanks! I'll keep that in mind if it needs to be updated anytime soon.
My new code is uploaded to github. Please feel free to go through it and let me know if I'm doing anything that could be dangerous to the calculator. I suck at optimizing, so there's probably a whole bunch that could be done with my code to make it better/cleaner/faster.