Added a hash function
Added a load/save function