Initial version of the commented and documented source code.