fix cookbook name in template declarations, clean up metadata