finished all functionality and debugging, adding text formatting