Added exhaustive commentary and removed log output.