tidied up MrSim.scala, split up hexTranslate and FileLock into seperate files