Removing a redundant parentheses
Adding better output messages
Removing redundant imports