Final version of the file. Removed debugging lines.