added getter method and updated readme