saveHMM, loadHMM: correct behaviour with respect to exceptions
saveHMM, loadHMM: correct behaviour with respect to exceptions

saveHMM uses writeFile, since hClose might be skipped by an exception in hPutStrLn
loadHMM uses hGetContents, this contains a close and loadHMM had no hClose at all before

saveHMM no longer writes a trailing line feed
loadHMM accepts spaces and line feeds after the data structure

mikeizbicki/hmm