Fixed Typo, indentation, removed unused variables