updated lines of code with function and improved LOC reading for
cyclomatic complexity testing & duplicate testing