just being awesome. fixed the bugs, added enough cases to pass test.ram, added most logic that was needed, and heavily commented the whole thing.