Adding documentation and added api_template.php