(1) Small bugfixes in parseArgs (2) checkParamsMatch function created to be able to check matfiles against passed parameters