removal of unused functions; renamed two callback functions; added comments; added some AJAX code for testing; layout changes --KW