Added some stuff to sys.c and ignored ~ files