adds comments, fixes imageRef