read plain file function added.
some generic function moved to functions/local.el