Cleaned up variable names and a typo in the examples