Fix issues #33 like also to_file option which was not calculated correctly