Changed the license from BSD to Apache version 2.0
Adding examples