Added documentation and changes in list parsing