added new int hash functions and cleaned up code. snippet is working and ready to be integrated with the main code