moved css to styles.css, added good id names for html things
handles click+drag activating or deactivating cells
cleaned up code and added comments