fixed hashtable functions

insert is STILL WRONG. first if statement.