add some documentation + change it so we only add a single function to jquery