Finished fixing bugs, beginning to implement Code/Decode algorithm.