Numerous fixes and added responsice definitions.