updated the grammar. added more library functions. added a new example.