move version number to __init__ and add to output file