Implemented remaining codeplug functions to read, write and insert codeplug entries. Fix bugs in ui code. Add unit tests. TG-428