modified main.py to format output; adding time estimate support