changed senna.py to use class methods, incomplete still for .txt file inputs