Fix code analysis method by making it call each check only if the option...

Please merge my branch that resolves issue #41, where I fixed the code analysis method.