added comments to clarify the parsing of lines