Added repr to BOp
Added a check of BOp repr.
Added str implementation to BOp
Refactoring of BOp