added read() method to compliment read_raw()