File split

Split handling of input parameters from main file