Changed error_msg; Various other formatting