added various changes

-(tree.py)added write fuction to crawler
-(model.py)added parameters to writetotabel()