Adding expose, removing unnecessary vars, renaming append to merge