initialise correctly
cleaned up and ignore *~ files