Fixed incorrect debug message
Fixed hash type string and updated php files