Added some comment explanations

Mainly about error handling