Fixed spelling mistakes

Documentation now has proper spelling and the examples work now.