Added the read, update functions and tests