Initial import of bwTools