removing redundant statements;
Minor changes in console output