Removed unused variables
Fixed typo