remove some lines of code used for debugging, added some doc strings