Cosmetics

Check volume size before parsing JSON.
Fix some comments.