added find/replace in files; fixed spacing for append line to file function