added rebuild.sh
Modifcations to rebuild.sh and added debug output to Assignment.bcws() to understand the logic