fixed lingering issue with copyarrays and linearize functions. removed useless comments from writer side.