improved php/ added loader to all

also cleaned up a few commented out areas