Merged SkipLine state into ReadLine and added some comments.