Bug fixes. Added new PHP files