Fixed some syntax errors and expanded example.