Address: Improved error messages and type, and added inspect prototype for console output.