Added documentation functionality and documentation to the CPU class.