output file path option added; output file declaration moved to main.cpp