Co-authored-by: Fernando Torres <fert1335@gmail.com>
* Refactor error handling and comments * Refactor and improve error handling and logs