Improved error handling and fixed lint and build errors