updated site and fixed minor php bugs