File Output Method Changes

Added file output functionality