Logging, AJAX updates

Added in more logging
Added in AJAX fixes