added READNE and improved the program for better understanding