Fix for variation stock defaulting to 0 and documentation.

Fix for issue #249