added backend for indexval and dividend merge and update. also made acco...

...mpanying error functions