cleaned up formatter_3.py

- better code sharing with formatter.py
- removed lots of commented out code