Removal of unnecessary variables ,spaces , tabs

Removal unnecessary variables and converted Method invocations and status check in cascaded form.