- Added remove function to remove element from a list.
     - Modified clear list function to empty the list if it's not empty,
       so when the object is converted to json, it will have empty [] list.