Full compliance with exercise json specifications. Bug fixes.