Fixed the data() and hasData() functions.
Made toggleClass() work with 0 arguments.