Further refactoring of code. Application now properly test logarithmic scale of test provided.