add comments and an example script