added apache license and styled to match current examples