added explanation to php files