Cleaned up code after understanding lists better. Introduced 2 unit tests to check for logic of nline option and insensitive sorts