Adds support for cos and sin to parser.
Adds examples described in README to code.