Update version number to 1.0.1
Check if fields object is valid in setter. Added corressponding tests