Remove debug messages
Add my own bitfield class
Create my own fread generating exceptions in case of issue