added comments to the php code and changed the selenium tests to work on the updated gui