Added better exception throwing when using invalid constructors.
Added toString() to Compound and Property.