Improved error handling (lists)

- every list function has now error handling