touched up some txt, and added a function