Add incorrect mode checking on read/write.
Remove unused select module.
Use the latest cfscc library.