added style sheet, added on() methods
organised files