Now attempts to remove tmp files on quit, also fixed some typos