Fix multiple “Notice: Use of undefined constant" and update readme