Bug fix (toggling of the advanced search field toggle), and commenting of the functions.