Added some more console print statements, changes to _print method. Removed unused module imports where present.