modify metric module to treat stdin/out
fix README.md