added license
removed unused nbc code