Some clean ups
Performance improvment in bput-bgetn.c