renamed safe_categories function
changed folder structure similar to wordpress standard