added reading file and samples