introducing lib/bsv directory and moving some files from bsv