Licensed code under New BSD License

Added LICENSE file and added copyright/license notice to the source files.