updated php scripts and added git ignore