Revisions + testing

It's gonna look like a cluster fuck right now cause I left in some printf() testers but it's all working except for the binary to decimal conversion of setIndex.