Fixed style inconsistencies. Changed a variable name for correctness