clean and move the struct definition to CNEr.h
update readBed with safer better PROTECT and UNPROTECT
clean the unused code