Fixing a small error in the LLC function and just a tiny bit of cleaning and testing in the other functions.