fixed error handling for Ajax/JSON on searches

changed getJSON to ajax with success/error handling.
added comments to some controllers - work in progress