Updated documentation with examples of using scalars.