Licensed code under New BSD License

Added the LICENSE file and a copyright/license note to all source files