fixed file renaming, better tmp file handling, valid host ip can't contain 255, fixed typos in menu bar