Added skeleton for read. Partial implementation of training-set reading.