Added description of the program and improved comments