added isRowMagic and isColumnMagic methods (and probably some other stuff I can't remember right now)