added read functions to master file