small comment change
added file output functionality