Uncommented 'read data' part of codes