Added some JavaDoc and removed the last number of the encoded cube to save space