* Remove clippy override for cyclomatic complexity * reduce cyclomatic complexity of main function * fix compilation errors