Added licensing and headers