correcting some bugs left from last commit; implementing half add, add, d flip (again)