Added doc strings for ajax functions