fixed issue of adding an empty string to the list and added comments