Fixed minor php warnings and other styling bugs