CM: code readability and pattern compilation
CM: use String.format
Merge pull request #4 from intentmedia/readability_and_logging

CM: random readability and formatting