1. Changed the active cube indicator to a bitmask from a boolean array.
2. Added comments.