added script and sources for BDCD
added script and sources for BDCD