Fixed a bug in collision check in add_entry and removed all the printf statements in methods.