makefile changes for linux compilation
added == and hash operators
added serialization stuff
added lookup function
added serialization of model after training
added serialization and some functions to get log probs from extern contexts