Fixed spell error in documentation and inconsistant variable naming.