adds comments and fixes all headers