Add metrics tools.

Added flog and flay to aid codebase analysis.