Subtract quantity sold from quantity available

Fixes #138