Added binary exceptions, close #30, close #28