cont'd refactoring of BinParser
fixed compile error on hardy
debugging
started refactoring of BinParser