reorganize into eclipse, readcols function incorporated