Updated docstring with detailed description of program.