remove debug prints and minor spacing fixes