added functionality for read file as input, create points