see output.c
Wrote replaceSubString
Fixed indentation in output.c and removed main()
Added comment to findVariables()