add optional baseline
some clean up
adjusted some indentations
some updates
updated
updated default length variable to depend on A or V
added switch to a 'customized' preprocessing, with more degrees of freedom for the cfg settings