more definitions
deleted jquery
Modified gen to gens and added history recording
Reorganized into files