Add extname method to Document class
Add yaml_file method to Document class