Used __init__ to include dir paths
Introduced return_code in main and further small changes
Extracted filling of file to an external method

fill_id_tfs_file saves a lot of duplicate code.
Small changes