Fixed some bugs.

Fix some methods that lacked validations.
Added clearList method to list functions.