Implemented error message with paramteres
Updated the documentation