Removed error_list where it wasn't being used.

Also added some comments to the code.