updated comments, and changed sed to something that can handle solaris od