local
polish up, add comments and such.