work on __init__ and printing/writing to file, also integration with control program